#include <jni.h>
#include <string>
#include <CNativeFunction.h>


extern "C"
JNIEXPORT jstring JNICALL
Java_com_example_dell_myapplication_CCodeHelper_getTestOne(
        JNIEnv *env,
        jobject /* this */) {

    std::string hello = "test1-直接在cpp里写的方法";
    return env->NewStringUTF(hello.c_str());
}

extern "C"
JNIEXPORT jstring JNICALL
Java_com_example_dell_myapplication_CCodeHelper_getTestTwo(
        JNIEnv *env,
        jobject /* this */) {
    //调用so里的方法
    jstring test= Java_com_example_dell_jianshudemo_mvp_extend_ndk_CCodeHelper_magicMethod(env,"a","B");
    return test;

}

extern "C"
JNIEXPORT jstring JNICALL
Java_com_example_dell_myapplication_CCodeHelper_getTestThree(
        JNIEnv *env,
        jobject /* this */) {
    //调用so里的方法
    jstring test= testMethod(env,"a","B");
    return test;

}
